wayland: Correctly find the keyboard for the keymap
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 5 Sep 2014 22:04:21 +0000 (15:04 -0700)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 5 Sep 2014 22:06:19 +0000 (15:06 -0700)
commitb692d779b211f431abe7dc9139efb81317c043d7
tree5d020c20e57a0782634804c45bac119434be1ee8
parentf401c85ee37fbe67371ae97bbfa62f4500278291
wayland: Correctly find the keyboard for the keymap

The list of devices was being scanned over incorrectly, causing us to
never actually fetch the keymap from the keyboard, as the keyboard was
the second device in the list, not the first.

This causes us to create a new temporary keymap every time, which is
quite expensive, because it involves parsing the entire XKB
file. Scanning the list correctly will cause us to use the XKB rules
file that was passed to us.
gdk/wayland/gdkdisplay-wayland.c